<?php

namespace Models;

class Damage extends Model
{
	protected $_table = 'damages';

	protected $_filter = false;

	protected $_belongs = [
		'product' => [
			'class' => Product::Class,
			'foreign' => 'id',
			'belongs_key' => 'product_id'
		],
		'item' => [
			'class' => Item::Class,
			'foreign' => 'id',
			'belongs_key' => 'item_id'
		],
		'cashier'=>[
			'class' => Cashier::Class,
			'foreign' => 'id',
			'belongs_key' => 'cashier_id'
		],
	];
}